﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XT.Model;

namespace XT.Repository
{
    public class AreaRepository : Repository<Area, Int32>, IAreaRepository
    {
        public AreaRepository(DataContext context)
        {
            Context = context;
        }
        public Area searchName(string name)
        {
            return ExecuteQuery(context => context.GetTable<Area>().SingleOrDefault(c => c.Area_Name.Equals(name)));
        }
    }
}
